package com.levenx.error.exceptions;

public class CoreException extends RuntimeException {

    private String code;

    private Object[] args;

    public CoreException(String code, Object... args){
        this.code = code;
        this.args = args;
    }

    public CoreException(String code){
        this.code = code;
    }

    public CoreException(String code, String message){
        super(message);
        this.code = code;
    }

    public CoreException(String code, Throwable cause){
        super(cause);
        this.code = code;
    }


    public CoreException(String code, String message, Throwable cause){
        super(message,cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public Object[] getArgs() {
        return args;
    }
}
